package com.lw.sbdemo2.common.constant;

import java.math.BigDecimal;

/**
 * <p>标题: 美折联盟通用常量</p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2018</p>
 * <p>公司: 智业软件</p>
 *
 * @version: 1.0
 * @author: LinWang
 * @date: 2018/3/16
 */
public interface MzConstants {

    /**
     * 用户有效标志
     * 0: 作废/黑名单
     * 1: 有效/正常
     * 2: 申请粉丝中（目前都是自动申请，不出现这个状态）
     * 3: 申请提现中
     * 4: 申请运营商中
     */
    String USER_VALID_UN = "0";
    String USER_VALID_OK = "1";
    String USER_VALID_IN = "2";
    String USER_VALID_MONEY = "3";
    String USER_MANAGE = "4";

    /**
     * 用户有效标志
     * 0: 作废/黑名单
     * 1: 有效/正常
     * 2: 申请粉丝中（目前都是自动申请，不出现这个状态）
     */
    String SUB_VALID_NEW = "0";
    String SUB_VALID_OK = "1";
    String SUB_VALID_UN = "2";

    /**
     * 用户级别（红包后门）
     * 0: 新增
     * 1: 贡献过cookie
     */
    String USER_LEVEL_NEW = "0";
    String USER_LEVEL_COOKIE = "1";

    /**
     * Cookie录入key前缀（目前已经作废，统一饿了么）
     */
    String COOKIE_PRE_MT = "美团";
    String COOKIE_PRE_ELM = "饿了么";

    /**
     * 美折接入平台
     */
    String MZ_GS_TB = "tb";
    String MZ_GS_PDD = "pdd";
    String MZ_GS_JD = "jd";

    /**
     * 美折淘宝配置
     */
    String ORDER_OK = "订单结算";
    String ORDER_OK_STATUS = "5";
    String ORDER_PAY = "订单付款";
    String ORDER_PAY_STATUS = "1";
    String ORDER_UN = "订单失效";
    String ORDER_UN_STATUS = "4";
    String ORDER_SPE = "_";

    /**
     * 特殊口令
     */
    String SPECIAL_CLEAR = "room1012";
    String SPECIAL_USE_NOVALID_NEW = "cjwmy1012";
    String SPECIAL_REFRESH_CODE = "refreshCode";
    String SPECIAL_MANAGE_SUM = "manage513204";

    /**
     * 红包
     */
    int ELE_CODE_OK = 99;
    int ELE_CODE_OVER = 0;
    int ELE_CODE_ERROR1 = 4;
    int ELE_CODE_ERROR2 = 8;

    /**
     * 网站建设需要
     */
    long SYSTEM_MUST_A = 50;
    long SYSTEM_MUST_B = 100;
    String SYSTEM_MANAGER = "hexwork";
    String SYSTEM_OK = "ok";
    String SYSTEM_ZERO = "0";
    String SYSTEM_MAIL_SUBJECT = "美折优选，系统管理员需知";
    String SYSTEM_ERROR_RELOAD = "系统嗝屁了，正在尝试重连...";
    String SYSTEM_APPLY_IN = "大鱼上钩啦，请注意...";
    String SYSTEM_ERROR_NOTICE = "系统维护中，请稍后...";
    String USER_ERROR_NOTICE = "用户不存在，请联系客服...";
    String QIANDAO_MONEY = "1";
    String TUIGUANG_MONEY = "5";

    /**
     * 运营商机制
     * MANAGE_LEVEL_AS_MONEY：A粉丝的单子，给自己的钱，80%
     * MANAGE_LEVEL_AM_MONEY：A粉丝的单子，给运营商的钱，10%
     * MANAGE_LEVEL_BS_MONEY：B粉丝的单子，给自己的钱，80%
     * MANAGE_LEVEL_BA_MONEY：B粉丝的单子，给A粉丝的钱，10%
     * MANAGE_LEVEL_BM_MONEY：B粉丝的单子，给运营商的钱，10%
     * MANAGE_LEVEL_S_MONEY：普通粉丝，给自己的钱，80%
     * MANAGE_UP_MONEY：普通粉丝，给上级的钱，10%
     * MANAGE_USER_MONEY：参与用户分配的实际比例，95%，隐藏5%
     * YONG_JIN：同MANAGE_UP_MONEY，老比例
     * YONG_JIN_P：同MANAGE_UP_MONEY，老比例
     */
    String MANAGE_SELF = "##";
    String MANAGE_LEVEL_S = "##";
    String MANAGE_LEVEL_A = "A";
    String MANAGE_LEVEL_B = "B";
    BigDecimal MANAGE_LEVEL_AS_MONEY = new BigDecimal(0.8).setScale(2, BigDecimal.ROUND_HALF_UP);
    BigDecimal MANAGE_LEVEL_AM_MONEY = new BigDecimal(0.1).setScale(2, BigDecimal.ROUND_HALF_UP);
    BigDecimal MANAGE_LEVEL_BS_MONEY = new BigDecimal(0.8).setScale(2, BigDecimal.ROUND_HALF_UP);
    BigDecimal MANAGE_LEVEL_BA_MONEY = new BigDecimal(0.1).setScale(2, BigDecimal.ROUND_HALF_UP);
    BigDecimal MANAGE_LEVEL_BM_MONEY = new BigDecimal(0.1).setScale(2, BigDecimal.ROUND_HALF_UP);
    BigDecimal MANAGE_LEVEL_S_MONEY = new BigDecimal(0.8).setScale(2, BigDecimal.ROUND_HALF_UP);
    BigDecimal MANAGE_UP_MONEY = new BigDecimal(0.1).setScale(2, BigDecimal.ROUND_HALF_UP);
    BigDecimal MANAGE_USER_MONEY = new BigDecimal(0.95).setScale(2, BigDecimal.ROUND_HALF_UP);
    BigDecimal MANAGE_USER_TB_MONEY = new BigDecimal(0.90).setScale(2, BigDecimal.ROUND_HALF_UP);
    BigDecimal YONG_JIN = new BigDecimal(0.8).setScale(2, BigDecimal.ROUND_HALF_UP);
    BigDecimal YONG_JIN_P = new BigDecimal(0.1).setScale(2, BigDecimal.ROUND_HALF_UP);

    /**
     * 消息回复符号替换
     */
    String MSG_BR = "_br_";
    String MSG_REAL_MONEY = "_real_money_";
    String MSG_BONUSES = "_bonuses_";
    String MSG_TAOBAO_LEVEL = "_taobao_level_";
    String MSG_SPREAD_NUM = "_spread_num_";
    String MSG_SIGN_IN = "_sign_in_";

    /**
     * 消息回复常量Key
     * SIGN_IN_OK: 签到成功
     * SIGN_IN_ERROR: 签到失败
     */
    String SIGN_IN_OK = "SIGN_IN_OK";
    String SIGN_IN_ERROR = "SIGN_IN_ERROR";
    String MAKE_MONEY = "MAKE_MONEY";
    String WITHDRAW_ERROR = "WITHDRAW_ERROR";
    String WITHDRAW_OK = "WITHDRAW_OK";
    String JOB_APPLY_BEGIN = "JOB_APPLY_BEGIN";
    String JOB_APPLY_SUCCESS = "JOB_APPLY_SUCCESS";
    String JOB_APPLY_OK = "JOB_APPLY_OK";
    String MONEY_OK = "MONEY_OK";
    String SYSTEM_NOTICE = "SYSTEM_NOTICE";
    String WECLOME = "WECLOME";
    String WECLOME_UP = "WECLOME_UP";
}
